package com.fjn.factorybean;

import org.springframework.beans.factory.FactoryBean;

public class MyBean implements FactoryBean<Books> {

    @Override
    public Books getObject() throws Exception {
        Books book = new Books();
        book.setBname("天龙八部");
        return book;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
